﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WMS_DATABASE_MYSQL.MappingClass.SystemClass
{
    [SugarTable("wms_syscurrentuser")]

    public class wms_syscurrentuser
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int key { get; set; }
        [SugarColumn(ColumnDataType = "Nvarchar(64)")]
        public string loginname { get; set; } = "";
        [SugarColumn(ColumnDataType = "Nvarchar(64)")]
        public string realname { get; set; } = "无名";
        [SugarColumn(ColumnDataType = "tinyint(1) unsigned")]
        public int authoritykey { get; set; } = 3; //1为超级管理员 2为管理员 3为普通用户
        [SugarColumn(ColumnDataType = "Nvarchar(255)")]
        public string avatarpath { get; set; } = "";
        [SugarColumn(ColumnDataType = "smallint(4) unsigned")]
        public int notifyCount { get; set; } = 0;//数量，最多255
        [SugarColumn(ColumnDataType = "smallint(4) unsigned")]
        public int unreadCount { get; set; } = 0;//数量，最多255
        [SugarColumn(ColumnDataType = "tinyint(1) unsigned")]
        public byte dept { get; set; } = 1;
        [SugarColumn(ColumnDataType = "tinyint(1) unsigned")]
        public byte section { get; set; } = 1;
        [SugarColumn(ColumnDataType = "tinyint(1) unsigned")]
        public byte group { get; set; } = 1;
        [SugarColumn(ColumnDataType = "Nvarchar(64)")]
        public string mobilephone { get; set; } = "";
        [SugarColumn(ColumnDataType = "Nvarchar(64)")]
        public string access { get; set; } = "user";
        [SugarColumn(ColumnDataType = "Nvarchar(64)")]
        public string email { get; set; } = "xxx@saicmotor.com";
    }
}
